<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>float</title>
    <style type="text/css">
        .wrap1 {
            max-width: 1000px;
        }

        div {
            min-height: 200px;
        }

        .box1 {
            float: left;
            width: 300px; 
            background: red;
           
        }

        .box2 {
            float: left;
            width: 300px;
            background: blue;
            height:300px;
        }

        .box3 {
            background: pink;
            height:400px;
        }
    </style>
</head>

<body>
    <div class="wrap1">
        <div class="box1">box1</div>
        <div class="box2">box2</div>
        <div class="box3">浮动布局</div> <!-- 这里不能与上面的右浮动互换位置，否则会被块元素挤下一行-->
    </div>
</body>

</html>